package cn.demoxy.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @auther demo
 * @date 2022/6/2 11:46
 * 数据源表实体类
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="DemoTable对象", description="数据库无此表")
public class DemoTable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "表名称")
    private String tableName;

    @ApiModelProperty(value = "表描述" )
    private String tableDesc;

    @ApiModelProperty(value = "存储引擎" )
    private String storageEngine;

    @ApiModelProperty(value = "表创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
